package com.css.fxfzysx.modules.vabStructure.controller;

import com.css.fxfzysx.base.response.RestResponse;
import com.css.fxfzysx.modules.vabStructure.param.RcpInformationParam;
import com.css.fxfzysx.modules.vabStructure.service.RcpInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 刚筋混凝土
 */
@RestController
@RequestMapping("rcpInformation")
public class RcpInformationController {

    @Autowired
    private RcpInformationService rcpInformationService;

    /**
     * 计算
     */
    @PostMapping("countRcpInformation")
    public RestResponse countRcpInformation(@RequestBody RcpInformationParam rcpInformationParam) {
        return rcpInformationService.countRcpInformation(rcpInformationParam);
    }

    /**
     * 保存
     */
    @PostMapping("saveRcpInformation")
    public RestResponse saveRcpInformation(@RequestBody RcpInformationParam rcpInformationParam) {
        return rcpInformationService.saveRcpInformation(rcpInformationParam);
    }
}
